package src.lab02.test35;

/**
 * Created by Administrator on 2017/11/18.
 */
//在基本工资的基础上每月还有销售提成
public class Salesman extends Employee{

    double baseSalar;
    double commision;
    int quantity;
    Salesman(String name,double baseSalar,double commision,int quantity) {
        super(name);
        this.baseSalar=baseSalar;
        this.commision=commision;
        this.quantity=quantity;
    }

    @Override
    double computeSalary() {

        return baseSalar+commision*quantity;
    }
}
